package com.springcloud.demo;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @ClassName TestApplication
 * @Description
 * @Author 戴书博
 * @Date 2020/5/24 8:48
 * @Version 1.0
 **/
@EnableUserBean
public class TestApplication {

    public static void main(String[] args) {
        AnnotationConfigApplicationContext applicationContext = new
                AnnotationConfigApplicationContext(TestApplication.class);
        User user = applicationContext.getBean(User.class);
        System.out.println(user);
    }
}
